package com.tepth.busfix.main.repair.complete;

import com.tepth.busfix.base.BaseModel;
import com.tepth.busfix.base.BasePresenter;
import com.tepth.busfix.base.BaseView;
import com.tepth.busfix.network.ApiModel;

import io.reactivex.Observable;

/**
 * Created by pc on 2017/3/15.
 */

public class CompletePunchCardContract {

    interface View extends BaseView {
        String getAuthKey();

        String getRepairInfo();

        void postRepairInfoSucceed();

        void postReworkSucceed();
    }

    interface Model extends BaseModel {

        Observable<ApiModel<String>> postRepair(String authKey, String info);

        Observable<ApiModel<String>> postRework(String authKey, String info);
    }

    abstract static class Presenter extends BasePresenter<Model, View> {

        @Override
        public void onStart() {

        }

        public abstract void postRepair();

        public abstract void postRework();

    }
}